package chapter10.exercise.test23;

public class A {
    private int count;

    public A(int i) {
        count = i;
    }

    public U getU() {
        return new U() {
            public void u1() {
                System.out.println("A" + count + " u1()");
            }

            public void u2() {
                System.out.println("A" + count + " u2()");
            }

            public void u3() {
                System.out.println("A" + count + " u3()");
            }
        };
    }

}
